package com.esoon.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * CSR_BLACK_LIST
 * @author 
 */
@Data
public class CsrBlackList implements Serializable {
    /**
     * PK
     */
    private Integer blId;

    /**
     * 关联数据字典: COS_DICTIONARY.DT_ID
     */
    private Integer blType;

    /**
     * 号码
     */
    private String blPhone;

    /**
     * 开始时间
     */
    private Date blBeginTime;

    /**
     * 结束时间
     */
    private Date blEndTime;

    /**
     * 状态
     */
    private String blState;

    /**
     * 备注
     */
    private String blMark;

    private Integer createId;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 部门编号
     */
    private Integer createDept;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateId;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 租户编号
     */
    private Integer tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CsrBlackList other = (CsrBlackList) that;
        return (this.getBlId() == null ? other.getBlId() == null : this.getBlId().equals(other.getBlId()))
            && (this.getBlType() == null ? other.getBlType() == null : this.getBlType().equals(other.getBlType()))
            && (this.getBlPhone() == null ? other.getBlPhone() == null : this.getBlPhone().equals(other.getBlPhone()))
            && (this.getBlBeginTime() == null ? other.getBlBeginTime() == null : this.getBlBeginTime().equals(other.getBlBeginTime()))
            && (this.getBlEndTime() == null ? other.getBlEndTime() == null : this.getBlEndTime().equals(other.getBlEndTime()))
            && (this.getBlState() == null ? other.getBlState() == null : this.getBlState().equals(other.getBlState()))
            && (this.getBlMark() == null ? other.getBlMark() == null : this.getBlMark().equals(other.getBlMark()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
            && (this.getCreateDept() == null ? other.getCreateDept() == null : this.getCreateDept().equals(other.getCreateDept()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateId() == null ? other.getUpdateId() == null : this.getUpdateId().equals(other.getUpdateId()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBlId() == null) ? 0 : getBlId().hashCode());
        result = prime * result + ((getBlType() == null) ? 0 : getBlType().hashCode());
        result = prime * result + ((getBlPhone() == null) ? 0 : getBlPhone().hashCode());
        result = prime * result + ((getBlBeginTime() == null) ? 0 : getBlBeginTime().hashCode());
        result = prime * result + ((getBlEndTime() == null) ? 0 : getBlEndTime().hashCode());
        result = prime * result + ((getBlState() == null) ? 0 : getBlState().hashCode());
        result = prime * result + ((getBlMark() == null) ? 0 : getBlMark().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
        result = prime * result + ((getCreateDept() == null) ? 0 : getCreateDept().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", blId=").append(blId);
        sb.append(", blType=").append(blType);
        sb.append(", blPhone=").append(blPhone);
        sb.append(", blBeginTime=").append(blBeginTime);
        sb.append(", blEndTime=").append(blEndTime);
        sb.append(", blState=").append(blState);
        sb.append(", blMark=").append(blMark);
        sb.append(", createId=").append(createId);
        sb.append(", creater=").append(creater);
        sb.append(", createDeptId=").append(createDept);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateId=").append(updateId);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}